#pragma once
#include "veicle.h"
class Car :
	public Veicle
{
public:
	Car(void):Veicle(){seats = 4, doors = 4;}
	Car(string brand, int year, int seats, int doors):
		Veicle(brand,year){this->seats = seats, this->doors = doors;}
	~Car(void);
	void SetSeats(int seats){this->seats = seats;}
	void SetDoors(int doors){this->doors = doors;}
	int GetSeats(){return seats;}
	int GetDoors(){return doors;}
	void print()
	{
		Veicle::print();
		cout << seats << endl;
		cout << doors << endl;
	}
private:
	int seats;
	int doors;
};

